package com.gtxc.kotlinmvvm.ui.activity;

import android.content.Intent;
import android.os.Bundle;
import android.util.Log;

import com.aleyn.mvvm.base.BaseActivity;
import com.blankj.utilcode.util.SPUtils;
import com.gtxc.kotlinmvvm.BR;
import com.gtxc.kotlinmvvm.R;
import com.gtxc.kotlinmvvm.config.Config;
import com.gtxc.kotlinmvvm.databinding.ActivityH5Binding;
import com.gtxc.kotlinmvvm.utlis.WebH5Utlis;
import com.gtxc.kotlinmvvm.viewmodle.H5ViewModle;

import org.jetbrains.annotations.Nullable;

/**
 * FileName:H5Activity
 * Author：Administrator
 * Date:2021 2021/9/27 10:20
 * Copyright (C), 2020-2021,成都拇音科技有限公司
 * <p>
 * <p>
 * Description: zwl
 * History:
 * <author> <time> <version> <desc>
 * 作者姓名 修改时间 版本号 描述
 */
public class H5Activity extends BaseActivity<H5ViewModle, ActivityH5Binding> {
    @Override
    public int layoutId() {
        return R.layout.activity_h5;
    }

    @Override
    public void initView(@Nullable Bundle savedInstanceState) {

    }

    @Override
    public void initData() {
        int userid = SPUtils.getInstance().getInt(Config.USER_ID);
        Log.i("userid", "initData: "+userid);
        WebH5Utlis.H5Web(getMBinding().webView,"http://share.quanmingshuquan.com/share/share/index.html#/share?duplicate="+userid);
    }

    @Override
    public void initCLick() {

    }

    @Override
    public int variableID() {
        return BR.H5ViewModle;
    }

    @Override
    public void bindViewModel() {

    }
}
